<template>
  <div class="fulltip">
    <span><i class="icon-tip-style icon-tip"></i>页面正在跳转，请稍后...</span>
  </div>
</template>
<script>
import crypt from '../utils/crypto-helper-pkcs7.js'
export default {
  created () {
    document.title = '请稍后...'
    var action = this.$route.query.action
    var state = this.$route.query.state
    var queryurl = this.$route.query.url
    var qurl = queryurl.replace(/ /g, '+')
    var url = crypt.decrypt(qurl)
    if (action === 'qrscan') {
      window.location.href = url
    }
    if (action === 'finish') {
      this.$router.push('/admin/loginfail/' + state)
    }
  }
}
</script>
<style>
.fulltip {
  text-align: center;
  margin-top: 50%;
  padding: 0 10%;
}
.fulltip .icon-tip-style {
  margin-right: 15px;
  color: #f7ba2a;
  font-size: 32px;
}
.fulltip span {
  color: #777;
  font-size: 18px;
  vertical-align: top;
  line-height: 32px;
}
</style>
